# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=gparted
pkgver=1.4.0
pkgrel=0
pkgdesc="graphical partition editor for creating, reorganizing, and deleting disk partitions"
options="!check" # Requires eudev
url="http://gparted.sourceforge.net/"
# s390x and riscv64 blocked by polkit
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="e2fsprogs ntfs-3g-progs exfatprogs"
makedepends="gtkmm3-dev parted-dev util-linux-dev intltool polkit-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/project/gparted/gparted/gparted-$pkgver/gparted-$pkgver.tar.gz
	musl-basename.patch
	nullptr.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-doc
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
20f94622fc1a2727f1fc9bb39ea9f04f14af06b0ff7e47c2149730d5eb339089b0d3c21cd3c9ce6f971e955a9f6ab89cc32fd5b7545a5e340b451297d87e8f39  gparted-1.4.0.tar.gz
6df888c4f207b8070776ad23106176b0f267320693ce0ead84d567a0948b98de5e978c7fed2bccc2d4631154515ffd3f5c729946067075151258c0666670d16a  musl-basename.patch
556f6dbad68dd257628e36c6814c3572c2ae8a7d8b6e605c838903a8e9e85de5f4198a15c945308a60d680e012119f6ce6bc1bdfdbe9659bdb46a920f7440910  nullptr.patch
"
